It is very easy to write incomplete assertions when using some test frameworks. This rule enforces complete assertions in the following cases:

In such cases, what is intended to be a test doesn’t actually verify anything.

Noncompliant Code Example

string actual = "Hello World!";
// Fluent Assertions
actual.Should();     // Noncompliant
// NFluent
Check.That(actual);  // Noncompliant
// NSubstitute
command.Received();  // Noncompliant

Compliant Solution

string actual = "Hello World!";
// Fluent Assertions
actual.Should().Contain("Hello");
// NFluent
Check.That(actual).Contains("Hello");
// NSubstitute
command.Received().Execute();